﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace WindbgConsoleTutorial
{
    class Program
    {

        private List<Byte[]> list = new List<byte[]>();
        void HighMemoryTest()
        {
            for (int i = 0; i < 100; i++)
            {
                list.Add(new byte[1024 * 1024 * 10]);
            }
        }
        void HighCPUTest()
        {
            new Thread(() =>
            {
                while (true)
                {
                }
            }).Start();
        }


        static void Main(string[] args)
        {
            var o = new Program();
            o.HighMemoryTest();
            o.HighCPUTest();
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey(true);
            Environment.Exit(0);
        }
    }
}


